import { Component } from '@angular/core';
import {IonicPage, ViewController} from "ionic-angular";

@IonicPage()
@Component({
  templateUrl: 'template.html'
})
export class GesturePage {

  public press: number = 0;
  public pan: number = 0;
  public swipe: number = 0;
  public tap: number = 0;
  constructor(private viewCtrl:ViewController) {

  }
  pressEvent(e) {
    this.press++
  }
  panEvent(e) {
    this.pan++
  }
  swipeEvent(e) {
    this.swipe++
  }
  tapEvent(e) {
    this.tap++
  }
  dismiss() {
    this.viewCtrl.dismiss();
  }
}
